<template>
  <div class="container bg-white">
    <div class="page-warpper">
      <h2 class="page-title">{{data.title}}</h2>
      <div
        class="page-content"
        v-html="data.content"
      ></div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      data: {}
    }
  },
  created () {
    let id = this.$route.params.id
    this.axios
      .get('/assist/help/' + id)
      .then(response => {
        this.data = response.data
        console.log(this.data)
        if (this.data.category) {
          document.title = this.data.category.name
        }
      })
      .catch(function (error) {
        console.log(error)
      })
  }
}
</script>
